package com.sservice.service.service.impl;

import com.sservice.model.dao.PurchaseLogMapper;
import com.sservice.model.entity.PurchaseLog;
import com.sservice.model.vo.PurchaseLogVo;
import com.sservice.service.service.PurchaseLogService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PurchaseLogServiceImpl implements PurchaseLogService {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private PurchaseLogMapper dataDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dataDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(PurchaseLog record) {
        return dataDao.insert(record);
    }

    @Override
    public int insertSelective(PurchaseLog record) {
        return dataDao.insertSelective(record);
    }

    @Override
    public PurchaseLog selectByPrimaryKey(Integer id) {
        return dataDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(PurchaseLog record) {
        return dataDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PurchaseLog record) {
        return dataDao.updateByPrimaryKey(record);
    }

    @Override
    public int queryByCount(PurchaseLogVo record) {
        return dataDao.queryByCount(record);
    }

    @Override
    public List<PurchaseLogVo> queryByPage(PurchaseLogVo record) {
        return dataDao.queryByPage(record);
    }
}